package com.kitty.game.hunpo.controller;

import com.kitty.game.enter.RespGeneralNotify;
import com.kitty.game.hunpo.message.RespWuhunCheckOpen;
import com.kitty.game.role.model.Role;
import com.kitty.game.utils.NotifyModules;
import com.kitty.mina.annotation.RequestMapping;
import com.kitty.mina.cache.SessionUtils;
import com.kitty.mina.message.MessagePusher;
import lombok.extern.slf4j.Slf4j;
import org.apache.mina.core.session.IoSession;
import org.springframework.stereotype.Controller;

@Controller
@Slf4j
public class NewHunPoController {
    @RequestMapping
    public void checkOpenNingHun(IoSession session, RespWuhunCheckOpen respWuhunCheckOpen) {
        Role role = SessionUtils.getRoleBySession(session);
//        RespGeneralNotify respGeneralNotify = new RespGeneralNotify();
//        respGeneralNotify.setNotify((short) NotifyModules.NOTIFY_OPEN_DLG); //打开对话框
//        respGeneralNotify.setValue("NingHunDlg");
//        MessagePusher.pushMessage(session, respGeneralNotify);

    }
}
